using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_BOMRuleEntryMap : EntityTypeConfiguration<t_BOMRuleEntry>
    {
        public t_BOMRuleEntryMap()
        {
            // Primary Key
            this.HasKey(t => t.FEntryID);

            // Properties
            this.Property(t => t.FRuleID)
                .IsRequired()
                .HasMaxLength(255);

            // Table & Column Mappings
            this.ToTable("t_BOMRuleEntry");
            this.Property(t => t.FEntryID).HasColumnName("FEntryID");
            this.Property(t => t.FInterID).HasColumnName("FInterID");
            this.Property(t => t.FSerialID).HasColumnName("FSerialID");
            this.Property(t => t.FEntryItemID).HasColumnName("FEntryItemID");
            this.Property(t => t.FGroupItemID).HasColumnName("FGroupItemID");
            this.Property(t => t.FRuleID).HasColumnName("FRuleID");
        }
    }
}
